
@charset "utf-8";

.top-bar{
  background: #333;
  color: #fff;
  height: 40px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 20;
  .top-box{
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    line-height: 20px;
    .text-link{
      padding: 10px 0;
    }
    .top-box-left{
      float: left;
      height: 100%;
      >a{
        display: inline-block;
        color: #fff;
        margin-right: 25px;
        text-align: center;
      }
    }
    .top-box-right{
      float: right;
      height: 100%;
      .login-box{
        height: 100%;
      }
      div{
        display: inline-block;
        cursor: pointer;
        margin-left: 25px;
      }
      .cart {
        margin-left: 0;
        position: relative;
        .cart-detail-box{
          display: none;
          margin-top: 5px;
          position: absolute;
          width: 260px;
          height: 70px;
          background: white;
          bottom: -74px;
          line-height: 70px;
          right: 0;
          box-shadow: 0 1px 3px #666;
          .text-link{
            position: absolute;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            background: #fff;
            top: -40px;
            right: 0;
            i{
              position: absolute;
              top: -15px;
              right: 12px;

              color: #666;
            }
          }
          .cart-box-text{
            color: #666;
          }
        }
        a{
          display: inline-block;
          text-align: center;
          width: 44px;
          height: 40px;
          padding: 9px 0;
          margin-left: 25px;
        }
        i{
          color: white;
          font-size: 20px;
        }
      }
    }
  }
}

